﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using LPY.LeHealth.DTO;
using System.Data;
using System.Data.SqlClient;
using System.Configuration;
namespace LPY.LeHealth.DAL
{
    using ServiceStack.OrmLite;
    public class PriDAL : GenericBaseDAL<Priv>
    {
        /// <summary>
        /// 领取优惠券功能
        /// </summary>
        /// <param name="p"></param>
        /// <returns></returns>
        public bool Addpri(Priv p)
        {
            using (var cnn = DbConnection)
            {
                var trv = cnn.Insert<Priv>(p);
                return trv>0;
            } 
        }
    }
    
     
}
